<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>子窗口</title>
</head>
<body>
    <script>

        let x = 10;
        let y = 10;
        setInterval(() => {
            moveBy(x,y);
            if(screenX == 1000 || screenX == 0){
                x *= -1;
            }
            if(screenY == 330 || screenY == 0){
                y *= -1;
            }
            console.log(screenX,screenY);
        },50);
        // moveTo(500,300);
        // resizeTo(600,600);
    </script>
</body>
</html>